package org.research.sdbx.datetime;

import java.util.Calendar;
/**
 * One based
 * @author Saad.Khawaja
 *
 */
public enum Month {

	JANURAY,
	FEBURARY,
	MARCH,
	APRIL,
	MAY,
	JUNE,
	JULY,
	AUGUST,
	SEPTEMBER,
	OCTOBER,
	NOVEMBER,
	DECEMBER;
	
	
	public static Month valueOf(int value){
		
		switch (value) {
		case 1:
			return JANURAY;
		case 2:
			return FEBURARY;
		case 3:
			return MARCH;
		case 4:
			return APRIL;
		case 5:
			return MAY;
		case 6:
			return JUNE;
		case 7:
			return JULY;
		case 8:
			return AUGUST;
		case 9:
			return SEPTEMBER;
		case 10:
			return OCTOBER;
		case 11:
			return NOVEMBER;
		case 12:
			return DECEMBER;
		default:
			throw new TimeExpcetion("Unsupported value="+value);
		}
		
	}
	
}
